﻿<%@ Page Title="" Language="C#" MasterPageFile="~/TimKenSite.Master" AutoEventWireup="true" CodeBehind="MessageView.aspx.cs" Inherits="TimKen.Web.User.MessageView" %>

<%@ Register Src="../UserControls/UserCenter.ascx" TagName="UserCenter" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Title" runat="server">
    <uc1:UserCenter ID="ucUserCenter" runat="server" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="body" runat="server">
<form runat="server" >
    <script type="text/javascript">
        function checkForm() {

            if (document.getElementById("<%=txtTitle.ClientID%>").value == "") {
                alert(x_MessageTitleNotAllowBlank);
                return false;
            }
            return true;
        }
    </script>
<div class="rtitle">
        <%=GetLangString("ReadMessage")%>
    </div>
    <div class="msglist">
        <%=GetLangString("MessageInfo")%>
    </div>
    <div class="msgview">
        <ul>
            <li>
                <div class="viewtitle">
                    <%=GetLangString("MessageTitle")%>：</div>
                <asp:Label ID="labTitle" runat="server" Text="Label"></asp:Label>
                <div class="right msgviewright">
                    <div class="viewtitle">
                        <%=GetLangString("MessageCreateDate")%>：</div>
                    <asp:Label ID="labCreateDate" runat="server" Text="Label"></asp:Label>
                </div>
            </li>
            <li>
                <div class="viewtitle">
                    <%=GetLangString("MessageFrom")%>：</div>
                <asp:Label ID="labFromID" runat="server" Text="Label"></asp:Label>
                <div class="right msgviewright">
                    <div class="viewtitle">
                        <%=GetLangString("MessageTo")%>：</div>
                    <asp:Label ID="labToID" runat="server" Text="Label"></asp:Label>
                </div>
            </li>
            <li>
                <div class="viewtitle">
                    <%=GetLangString("MessageContent")%>：
                </div>
            </li>
            <li>
                <div class="viewcontent">
                    <asp:Label ID="labMessage" runat="server" Text="Label"></asp:Label>
                </div>
            </li>
        </ul>
        <div class="rightbt">
            <a href="Inbox.aspx" class="submitlink"><%=GetLangString("BtnBackTo")%></a>
        </div>
    </div>
    <div class="msglist">
        <%=GetLangString("MessageReply")%>
    </div>
    <div class="msgview">
        <ul>
            <li>
                <div class="viewtitle">
                    <%=GetLangString("MessageTo")%>：</div>
                <asp:TextBox ID="txtToID" runat="server" Width="80%" ReadOnly="true"></asp:TextBox></li>
            <li>
                <div class="viewtitle">
                    <%=GetLangString("MessageTitle")%>：</div>
                <asp:TextBox ID="txtTitle" runat="server" Width="80%"></asp:TextBox></li>
            <li>
                <div class="viewtitle">
                    <%=GetLangString("MessageContent")%>：</div>
            </li>
        </ul>
        <asp:TextBox ID="txtMessage" TextMode="MultiLine" runat="server" Width="95%" Height="100px"></asp:TextBox>

        <div class="rightbt">
            <asp:LinkButton ID="btnSubmit" runat="server" CssClass="submitlink" OnClientClick="return checkForm(); " OnClick="btnSubmit_Click"></asp:LinkButton>
               
        </div>
    </div>
</form>
</asp:Content>
